package cn.sise.edu.crm.util;

import java.lang.reflect.Method;

/**
 * Created by chen on 2019/11/6.
 */
public abstract class StringUtil {
    public static String getExpression(Method method) {
        String name = method.getDeclaringClass().getSimpleName();
        name = name.replace("Controller", "");
        name = (name.charAt(0) + "").toLowerCase() + name.substring(1);
        return name + ":" + method.getName();
    }
}
